const state = {

  // 搜索查询的参数
  pageParams: {
    page: 1,
    limit: 20
  },
  // table数据源
  tableData: [],

}

const mutations = {
  SET_STATE_DATA: (state, map) => {
    for (var key in map) {
      state[key] = map[key]
    }
  }
}

const actions = {
  setStateData ({commit, state}, map) {
    commit('SET_STATE_DATA', map)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
